﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shsc.Net.FrameWork.Entity.Base;
using Seasar.Dao.Attrs;

namespace Shsc.Net.FrameWork.Dao.Base
{
    [Bean(typeof(MsUserEntity))]
    public interface IMsUserDao
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IList<MsUserEntity> GetAll();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        MsUserEntity SelectByKey(MsUserEntity entity);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int Insert(MsUserEntity entity);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int Update(MsUserEntity entity);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int UpdateUnlessNull(MsUserEntity entity);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int UpdateModifiedOnly(MsUserEntity entity);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int Delete(MsUserEntity entity);
    }
}
